package com.jshan.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jshan.base.entity.SysRole;

import java.util.List;

public interface SysRoleService extends IService<SysRole> {
    List<SysRole> listAll();

    IPage<SysRole> getRolePage(IPage<SysRole> page, String roleName);

    // 获取角色已分配的菜单ID列表
    List<Long> getRoleMenuIds(Long roleId);

    // 更新角色菜单权限
    void updateRoleMenus(Long roleId, List<Long> menuIds);
}
